<!DOCTYPE html>
<html lang="en">
    <body>
        <section id="messages" >
            <?php foreach ($messageList as $mesg) : ?>

                <div class="message" style="clear:both;">
                    <span class='msg-time'>[<?php echo $this->escapeHtml($mesg->getStamp()); ?>]</span> 
                    <span class='msg-user'> <?php echo $this->escapeHtml($mesg->getUser_id()); ?>: </span>
                    <span class='msg-data'><?php echo $this->escapeHtml($mesg->getMessage()); ?></span>
                </div>
            <?php endforeach; ?>

        </section>
    </body>
</html>